/***************************************************************************
 *	@file 		clfetion.h
 *	@Author 	baoyu0125@gmail.com
 *	@create		2011-7
 *	@version 	1.0.0
 *	@brief		main header file of clfetion, declare functions in 
 *				file clfetion.cpp
 *	@modify		none
 ***************************************************************************/

#ifndef CLFETION_H
#define CLFETION_H

#define PHONENO_LEN 11
#define PASSWORD_LEN 128

int get_param(int argc, char *argv[], std::string &phoneno, std::string &passwd, int &state);

void print_help(const char* lparam/*=NULL*/);

void print_version();

int get_user_info(std::string &phoneno, std::string &passwd, int &state);

void clear_all();

void input_password(std::string &passwd);

int login_process(const std::string &no, const std::string &passwd, const int state);

void print_state_choice(int state[], unsigned int size);

void print_indication();

int operation_loop();

#endif
